-
Notifications
You must be signed in to change notification settings - Fork 338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding showRewardVideoAd() arguments to README #643
base: master
Are you sure you want to change the base?
Conversation
Currently it's impossible to know the arguments to showRewardVideoAd without looking at the code.
On second thought, these two methods are misleading. They don't actually fire based on whether a reward video is played or not. Ideally the There are some global events which this module will fire, but it's not easy to correlate them to a particular reward ad being played. It's also not 100% possible to correctly know if a user has earned a reward with those global events. For example, the I don't think this PR should be accepted, but I would like to have it trigger a discussion on updating the cordova-admob-pro API. |
Is this related with the error that I'm getting now when I build my app?
|
Fixed in 3229136 New version of AdMob Android SDK added a virtual API, just implement: //@Override
public void onRewardedVideoCompleted() {
fireAdEvent(EVENT_AD_WILLDISMISS, ADTYPE_REWARDVIDEO);
} |
Thanks |
It seems that there is still some problems with this... Compiling on phonegap build returns :app:compileReleaseJavaWithJavac/app/src/main/java/com/rjfun/cordova/admob/AdMobPlugin.java:684: error: method does not override or implement a method from a supertype |
Please use the latest version, |
Hi. Pgb is retrieving the version from npm, and is already using that version. Looking at the error line on the code I see that on 2.31.3 you changed line 679 of AdMobPlugin.java, while now the the error is on line 684. I suppose the same problem is on another method than that you fixed. |
@Ices-Eyes yes, you are correct. I made a stupid mistake, comment out the wrong line in a hurry. Should be line 684. Now updated as |
Thanks, will try it in a few moments with pgb :) |
It works perfectly now- Thanks! 👍 |
With version 2.31.4, I am still getting the error that @erperejildo was receiving.
I am running |
@Cycododge as the AdMob SDK API is not compatible to old version, currently you may need find the code: //@Override
public void onRewardedVideoCompleted() {
fireAdEvent(EVENT_AD_WILLDISMISS, ADTYPE_REWARDVIDEO);
} and remove the // manually. |
I'm not sure I follow. |
Removing my |
In my app when I call AdMob.prepareRewardVideoAd then always out the message 'error:3, reason: No fill, adNetwork:AdMob, adType:rewardvideo,adEvent:onAdFailLoad. Example source too. Is it OK? (My plugin version is 2.31.4) - I tested in new project but it works same...... OTL |
@floatinghotpot on 2.31.4 it's with //
Should we remove it manually? |
It depends. |
How to implement ? |
Currently it's impossible to know the arguments to showRewardVideoAd without looking at the code.